package com.ctshk.rpc.order.goods.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 *     C端--小店--登录req
 * </p>
 *
 * @author 黄利斌
 * @date 2021/6/9 5:35 下午
 */
@Data
@ApiModel(value="ShoppingShopLoginReq对象", description="商城小店登录Req")
public class ShoppingShopLoginReq implements Serializable {

    @ApiModelProperty(name="contactMobileAreaCode", value = "聯繫人手機區號",required = true)
    private String contactMobileAreaCode;

    @ApiModelProperty(name = "contactNumber", value = "聯絡電話",required = true)
    @Pattern(regexp = "^[0-9]*$", message = "手机号必须是纯数字")
    private String contactNumber;

    @ApiModelProperty(name = "code",value = "验证码",required = true)
    @Size(min = 4,max = 4,message = "验证码不能小于4位")
    private String code;


}
